cd D:\traeWorkspace\javafx-desktop
mvn -DskipTests clean package
mvn -DskipTests org.openjfx:javafx-maven-plugin:0.0.8:jlink
if (Test-Path dist\JavaFXClient) { Remove-Item -Recurse -Force dist\JavaFXClient }
jpackage --type app-image --name "成品油数据采集器" --input target --dest dist --main-jar javafx-desktop-1.0.0.jar --main-class com.example.app.Main --runtime-image target/image --app-version 1.0.0 --vendor "Example Co." --verbose
if (-not (Test-Path "dist\成品油数据采集器")) { New-Item -ItemType Directory -Force -Path "dist\成品油数据采集器" } ; Copy-Item "src\main\resources\logo.png" "dist\成品油数据采集器\logo.png" -Force 
if (-not (Test-Path "dist\成品油数据采集器")) { New-Item -ItemType Directory -Force -Path "dist\成品油数据采集器" } ; Copy-Item "src\main\resources\logo.ico" "dist\成品油数据采集器\logo.ico" -Force 


heat dir dist/成品油数据采集器 -cg AppFiles -dr INSTALLDIR -var var.SourceDir -sfrag -srd -sreg -gg -platform x64 -o installer/wix/AppFiles.wxs
candle -nologo -arch x64 -dSourceDir=dist\成品油数据采集器 -out installer\wix\ installer\wix\Product.wxs installer\wix\AppFiles.wxs
light -cultures:zh-CN -ext WixUtilExtension -ext WixUIExtension installer/wix/Product.wixobj installer/wix/AppFiles.wixobj -o target/oil-installer.msi


